package com.szp.drug.component.service.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.szp.drug.entity.DrugMedicine;
import com.szp.drug.util.ResultEntity;

/**
 * 药品service接口
 * @author SuZePing
 * @create 2021-03-05 21:59
 * @E-mail suzeping10@126.com
 */
public interface DrugMedicineService extends IService<DrugMedicine> {

	/**
	 * 分页获取药品
	 * @param medicineName
	 * @param medicineType
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	ResultEntity<PageInfo<DrugMedicine>> getPageInfo(String medicineName, String medicineType, String pageNum, String pageSize);

	/**
	 * 新增药品
	 * @param medicine
	 * @return
	 */
	ResultEntity<Integer> saveMedicine(DrugMedicine medicine);

	/**
	 * 修改药品
	 * @param medicine
	 * @return
	 */
	ResultEntity<String> editMedicine(DrugMedicine medicine);

	/**
	 * 删除药品
	 * @param medicineId
	 * @return
	 */
	ResultEntity<String> removeMedicine(String medicineId);
}
